package com.lanou3g.k12.service;

import com.lanou3g.k12.entity.Coupon;
import com.lanou3g.k12.entity.CouponCode;
import com.lanou3g.k12.entity.CouponRecord;


import java.io.InputStream;

import java.util.Date;
import java.util.List;

public interface CouponService {

    //查询所有
    List<Coupon> findAllCoupon();

    //关键字查询
    List<Coupon> search(String keyword);
    //新增
    int couponInsert(Coupon coupon , Long[] ids, Date beginTime, Date endTime);

    //通过ID查询
    Coupon findCouponById(Long id);

    //导出 excel
    InputStream getAllCodes(Long id);

    Boolean voucherCode(String code,String phone);

    List<CouponRecord> couponRecord(String phone);
}
